import './assets/main.css'
import 'vant/lib/index.css';
//Vant组件引入
import Vant from 'vant';

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { Barrage, Button, CellGroup, Field, Form, Grid, GridItem, Icon, Search, Sidebar, SidebarItem, Tab, Tabbar, TabbarItem, Tabs, TreeSelect } from 'vant';
import { Toast } from 'vant';
 import { SwipeCell } from 'vant';

import ElementPlus from 'element-plus'  
import 'element-plus/dist/index.css'  
import { Loading } from 'vant';
import { Empty } from 'vant';
import { Step, Steps } from 'vant';


import App from './App.vue'
import router from './router'
import { zhCn } from 'element-plus/es/locales.mjs';

const app = createApp(App)

app.use(ElementPlus)

app.use(ElementPlus, {
  locale: zhCn,
})

//Vant
app.use(Vant);

//图标
app.use(Icon);

//Tab切换
app.use(Tab);
app.use(Tabs);

//左侧导航栏
app.use(Sidebar);
app.use(SidebarItem);

//宫格
app.use(Grid);
app.use(GridItem);

//按钮
app.use(Button);

app.use(Toast)

//分类选择
app.use(TreeSelect);

//input组件
app.use(Search);

//标签栏
app.use(Tabbar);
app.use(TabbarItem);

//表单
app.use(Form);
app.use(Field);
app.use(CellGroup);

app.use(Step);
app.use(Steps);
app.use(Toast);
app.use(Loading);
app.use(Barrage);
app.use(createPinia())
app.use(router)
app.use(Empty);
app.use(SwipeCell);
app.use(ElementPlus)  
app.mount('#app')